package com.zj.sy.config.redis.base;



public class RedisPublishSubscribeOpearetor {
	
	private String message;
	private RedisPublishSubscribeOpearetorEnum redisPublishSubscribeOpearetorEnum;
	private String cacheName;
	private String key;
	
	
	public String getKey() {
		return message.substring(message.indexOf("#")+1);
	}
	public String getCacheName() {
		return message.substring(message.indexOf("$")+1, message.indexOf("#"));
	}
	
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public RedisPublishSubscribeOpearetorEnum getRedisPublishSubscribeOpearetorEnum() {
		return redisPublishSubscribeOpearetorEnum;
	}
	public void setRedisPublishSubscribeOpearetorEnum(RedisPublishSubscribeOpearetorEnum redisPublishSubscribeOpearetorEnum) {
		this.redisPublishSubscribeOpearetorEnum = redisPublishSubscribeOpearetorEnum;
	}
	
}
